package com.hsmw.schedule.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class RelationOrderVo implements Serializable {

    @ApiModelProperty(value = "子订单id")
    private String relationId;

    @ApiModelProperty(value = "项目名称")
    private String itemName;

    @ApiModelProperty(value = "施工单位")
    private String constructionUnitName;

    @ApiModelProperty(value = "项目施工位置")
    private String itemPosition;

    @ApiModelProperty(value = "施工部位")
    private String constructionPosition;

    @ApiModelProperty(value = "开始干活时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss")
    private LocalDateTime startWorkTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "司机确认方量")
    private String driverVolume;

    @ApiModelProperty(value = "司机确认方量")
    private String driverId;

    @ApiModelProperty(value = "车牌号")
    private String vehicleNum;

    @ApiModelProperty(value = "车辆id")
    private String vehicleId;

    @ApiModelProperty(value = "工作时间")
    private Long workTime;


    @ApiModelProperty(value = "要求到达时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss")
    private LocalDateTime reachTime;

    @ApiModelProperty(value = "实际到达时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss")
    private LocalDateTime realReachTime;


    @ApiModelProperty("确认方量")
    private String confirmVolume;

    private List<DriverAndVehicleVO> driverAndVehicleVOS;




}
